# This script installs the g++ compiler for GCC and the necessary includes
# and libraries. It should be run from /mint like this 'sh setup/c++.sh'.
# The main part of GCC should have already been installed with the 'normal'
# setup script.
#
# These files need to be in your $SAVE directory:
#
# (Atari Archive)
# Mint/Gcc/mg++253b.zoo
# Gnustuff/Tos/G++/gpinc20.zoo
# Gnustuff/Tos/G++/gplibo20.zoo

# check for everything
for i in mg++253b.zoo gpinc20.zoo gplibo20.zoo; do
	if [ ! -r $SAVE/$i ] ; then
		echo "can't find $SAVE/$i"
		exit 1
	fi
done

cd usr

if [ ! -d g++-include ] ; then
	mkdir g++-include
fi
cd g++-include
zoo xq $SAVE/gpinc20.zoo

cd ../lib
zoo xq $SAVE/gplibo20.zoo

cd ../bin
zoo xq $SAVE/mg++253b.zoo gcc-cc1plus.ttp
